home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / mongol_fiere.swf / scripts / frame_7 / PlaceObject2_105_115 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2007-01-15  |  922b  |  47 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.L1 == 1 and _root.L1s == 0)
  3.    {
  4.       _root.leson.gotoAndPlay(2);
  5.       _root.L1s = 1;
  6.    }
  7.    if(_root.L2 == 1 and _root.L2s == 0)
  8.    {
  9.       _root.leson.gotoAndPlay(2);
  10.       _root.L2s = 1;
  11.    }
  12.    if(_root.L3 == 1 and _root.L3s == 0)
  13.    {
  14.       _root.leson.gotoAndPlay(2);
  15.       _root.L3s = 1;
  16.    }
  17.    if(_root.L4 == 1 and _root.L4s == 0)
  18.    {
  19.       _root.leson.gotoAndPlay(2);
  20.       _root.L4s = 1;
  21.    }
  22.    if(_root.L5 == 1 and _root.L5s == 0)
  23.    {
  24.       _root.leson.gotoAndPlay(2);
  25.       _root.L5s = 1;
  26.    }
  27.    if(Key.isDown(32) and _root.death == false)
  28.    {
  29.       _root.speed -= _root.upspeed;
  30.    }
  31.    else
  32.    {
  33.       _root.speed += 0.2;
  34.    }
  35.    if(20 >= _Y)
  36.    {
  37.       _Y = 21;
  38.       _root.speed *= -1;
  39.    }
  40.    if(_Y >= 190 and _root.death == false)
  41.    {
  42.       _Y = 189;
  43.       _root.speed *= -0.5;
  44.    }
  45.    _Y = _Y + _root.speed;
  46. }
  47.